Mobile device and method for supporting hibernation function

ABSTRACT

A method and apparatus for supporting a hibernation function in a mobile device are provided. In the method, the mobile device detects a wakeup event in a hibernation mode and, in response to the wakeup event, loads a snapshot image into a volatile memory from a snapshot image region of a nonvolatile memory. After the loading of the snapshot image, the mobile device determines whether there is a system status has been modified. If the system status has not been modified, the mobile device finishes a system boot. If the system status has been modified, the mobile device performs data synchronization and then finishes the system boot.

PRIORITY

This application claims priority under 35 U.S.C. §119(a) to an application filed in the Korean Industrial Intellectual Property Office on Oct. 19, 2010, and assigned Serial No. 10-2010-0101848, the entire disclosure of which is incorporated herein by reference.

BACKGROUND OF THE INVENTION

1. Field of the Invention

The present invention relates generally to a booting technology for a mobile device and, more particularly, to a method and apparatus for supporting a faster and more stable boot process by using a hibernation function in a mobile device.

2. Description of the Related Art

With the remarkable growth of related technologies, many types of mobile devices have recently become popular. Specifically, mobile devices today have outgrown their respective traditional fields and have reached a mobile convergence stage. In the case of a mobile communication device, for example, in addition to traditional communication functions such as a voice call and an Short Message Service (SMS), various essential or optional multimedia functions are widely used such as a portable broadcasting (e.g., Digital Multimedia Broadcasting (DMB) or Digital Video Broadcasting (DVB), a digital music player (such as an e.g., MPEG audio layer-3 (MP3) player), a digital camera, a wireless Internet, a dictionary, and the like.

The use of various functions may cause an increase in the amount of data required to drive a mobile device in a system boot process. This may also increase the time required in a system boot process. Thus, many techniques to reduce the system boot time of a mobile device have been introduced in the art.

One of such techniques is to package data used for a system boot process in a nonvolatile memory (e.g., a flash memory) and then load this package, as it is, into a volatile memory (e.g., Random Access Memory (RAM)) in a system boot process. This data package for a boot process is often referred to as a snapshot image or a hibernation image. Performing a boot process of a mobile device by using a snapshot image is often referred to as a hibernation function.

However, a hibernation function of a conventional mobile device still has drawbacks, including the following drawbacks. If the data volume of a snapshot image is excessively large, a lot of time is required for loading this snapshot image into volatile memory. Thus, this will cause a serious delay of a system boot process in a conventional mobile device.

Additionally, when turned off using a hibernation function, a conventional mobile device performs a process of storing a snapshot image in a nonvolatile memory. Therefore, if a snapshot image is created in abnormal operations of a mobile device, or if abnormal power-off of a mobile device occurs during creation of a snapshot image, this mobile device may fail in a boot process using a snapshot image. Even in case of a successful boot, there is no guarantee that a mobile device will operate in a normal manner.

SUMMARY OF THE INVENTION

Accordingly, the present invention has been made to address the above-mentioned problems and/or disadvantages and to offer at least the advantages described below.

One aspect of the present invention is to provide a method and apparatus for supporting a hibernation function in a mobile device, especially for reducing boot time and power consumption.

Another aspect of the present invention is to provide a mobile device based on a hibernation function and a related operation method, especially for reducing a boot time, securing a memory capacity, and allowing for stable system operation through continued use of a snapshot image and through synchronization of data loaded into a mobile device during a hibernation boot process based on the snapshot image.

Still another aspect of the present invention is to prevent abnormal operations of a snapshot image itself or a crash of a snapshot image by continuously using a snapshot image taken at a particular time, instead of newly creating a snapshot image whenever entering into a hibernation mode, and by synchronizing specific parts only that is different from the former system status in a boot process.

Yet another aspect of the present invention is to optimize environments for a fast operating speed when a mobile device enters hibernation mode and changes to a wakeup state, thus promoting usability, accessibility and competitiveness of a mobile device.

According to one aspect of the present invention, a method for supporting a hibernation function of a mobile device is provided, the method including detecting a wakeup event in a hibernation mode; loading a snapshot image into a volatile memory from a snapshot image region of a nonvolatile memory in response to the wakeup event; after the loading of the snapshot image, determining whether a system status has been modified; if the system status has not been modified modification, finishing a system boot; and if the system status has been modified, performing data synchronization and then finishing the system boot.

According to another aspect of the present invention, a mobile device is provided, including, a memory unit including a nonvolatile memory and a volatile memory, and configured to store a snapshot image in the nonvolatile memory and to allow the snapshot image to be loaded into the volatile memory in response to a wakeup event occurring in a hibernation mode; and a control unit configured to allow an entrance into the hibernation mode without any creation of the snapshot image, to load the snapshot image into the volatile memory from the nonvolatile memory in response to the wakeup event in the hibernation mode, and to perform data synchronization for a system boot depending on a modification of a system status.

Other aspects, advantages, and salient features of the invention will become apparent to those skilled in the art from the following detailed description, which, taken in conjunction with the annexed drawings, discloses embodiments of the invention.

BRIEF DESCRIPTION OF THE DRAWINGS

The above and other aspects, features, and advantages of the present invention will be more apparent from the following detailed description taken in conjunction with the accompanying drawings, in which:

FIG. 1 is a block diagram illustrating a schematic configuration of a mobile device in accordance with an embodiment of the present invention;

FIG. 2 is a flowchart illustrating a method for supporting a hibernation function in a mobile device in accordance with an embodiment of the present invention; and

FIG. 3 is a diagram illustrating an update process for a snapshot image in a mobile device in accordance with an embodiment of the present invention.

DETAILED DESCRIPTION OF EMBODIMENTS OF THE INVENTION

Various embodiments of the present invention will now be described more fully with reference to the accompanying drawings. This invention may be embodied in many different forms and should not be construed as limited to the embodiments as set forth in this application. Rather, the disclosed embodiments are provided so that this disclosure will be thorough and complete, and will fully convey the scope of the invention to those skilled in the art. The principles and features of this invention may be employed in varied and numerous embodiments without departing from the scope of the invention.

Furthermore, well known or widely used techniques, elements, structures, and processes may not be described or illustrated in detail to avoid obscuring the essence of the present invention. Although the drawings represent illustrative embodiments of the invention, the drawings are not necessarily to scale and certain features may be exaggerated or omitted in order to better illustrate and explain the present invention.

The present invention relates to a mobile device that supports a hibernation function, and also relates to a booting method thereof. Specifically, a mobile device may support a quick boot process by using a predetermined snapshot image when performing a boot process based on a wakeup in a hibernation mode.

According to embodiments of this invention, in order to perform a boot process based on a wakeup, a mobile device omits a snapshot image creation step which is typically required whenever the mobile device enters hibernation mode, and, instead, uses a predetermined snapshot image which is taken at the time of manufacture or created in advance through a setting of a user. Additionally, during a boot process using a snapshot image, a mobile device compares a system status based on a snapshot image with the former system status and then reloads only parts of inconsistency.

In embodiments of this invention, a hibernation function, which is a power management technique of a mobile device, is a function that allows a device to completely stop the supply of power to system components of such mobile device. For instance, when no activity is detected from an input unit (such as a touch screen or the like) for a given time, or when a battery is low, a mobile device enters into a hibernation mode by interrupting a currently executed task.

According to embodiments of this invention, a mobile device allows for a quick entrance into a hibernation mode by omitting a snapshot image creation step, which is typically required whenever a mobile device enters hibernation mode. This minimizes power consumption, and also prevents unexpected errors caused by system instability during the creation of a snapshot image subsequent to entrance into a hibernation mode.

Additionally, in embodiments of this invention, a system recovery in a hibernation mode is referred to as a wakeup in which a system returns to an original state in a hibernation mode and then a task is resumed. This wakeup is different from a typical Power On Reset (POR) ( ) that resets the state of a mobile device.

Furthermore, according to embodiments of this invention, at the time of a wakeup using a snapshot image, a mobile device compares a system status based on a snapshot image with another system status registered in a nonvolatile memory such as Read-Only Memory (ROM) or flash memory, and then performs synchronization for modified parts. Therefore, even though a wakeup is carried out based on a predetermined snapshot image, it is possible to offer data consistent with the former system status (e.g., change of background screens, change of ringtones, modification of phonebook, and the like) before entering hibernation mode. Therefore, this prevents a system boot delay caused by a lot of time required for loading a snapshot image with a big volume into a volatile memory.

In embodiments of this invention, a snapshot image is defined in order to resume a task by a wakeup, namely to recover to a system status of the time when a task is interrupted. This snapshot image may be first established at the time of manufacture of a mobile device or may be established according to a setting of a user. Therefore, this invention avoids the typical process of preserving a system status as a snapshot image whenever entering into a hibernation mode. Here, a system status indicates information (e.g., applications and related data) stored in a volatile memory (e.g., RAM) such as a main memory, and information about system components such as a control unit.

A mobile device recovers a system status by restoring the preserved data to an original location at the time of a wakeup. Such data preserved for a recovery of a system status is referred to as a snapshot image or a hibernation image. In this invention, a snapshot image is not created when a mobile device enters hibernation mode, but created and registered at the time of manufacture of a mobile device or according to a setting of a user.

In this disclosure, a snapshot image refers to specific data used for a system boot process based on a wakeup in a hibernation mode, packaged in a nonvolatile memory (e.g., ROM), and loaded, as it is, into a volatile memory (e.g., RAM) in a system boot process.

A mobile device according to an embodiment of this invention and its operation control method will be fully described with reference to the drawings. The following embodiment is, however, merely illustrative and should not be considered as a limitation of this invention. As will be understood by those skilled in the art, many other alternative embodiments may be used.

FIG. 1 is a block diagram illustrating a schematic configuration of a mobile device in accordance with an embodiment of the present invention.

Referring to FIG. 1, the mobile device includes a display unit 100, a memory unit 200 and a control unit 300. Moreover, the mobile device may include a radio frequency unit for performing a communication function, an audio processing unit having a microphone and a speaker, a digital broadcast module for receiving and playing digital broadcasting such as Digital Multimedia Broadcasting (DMB) or Digital Video Broadcasting (DVB), a camera module for taking a photo or recording a video, a Bluetooth® communication module for performing a Bluetooth® communication function, an Internet communication module for performing an Internet communication function, a touch pad for a touch-based input, a key input unit for a mechanical key input, and the like. Since these elements are well known in the art, related illustration and description will be omitted.

The display unit 100 offers various execution screens of applications supported in the mobile device, including a home screen of the mobile device. Many execution screens associated with essential or optional functions may be provided, for example, such as Short Message Service (SMS), e-mail, Internet, multimedia, search, communication, e-book, video play, camera, image viewer, TV (e.g., DMB or DVB), music playing (e.g., MP3), widget, memo, game, and the like. The display unit 100 may be implemented as a Liquid Crystal Display (LCD) or any other equivalent such as Organic Light Emitting Diodes (OLED) or Active Matrix OLED (AMOLED).

The memory unit 200 stores a variety of programs and related data that are executed and processed in the mobile device, and may include at least one nonvolatile memory 210 and volatile memory 230. The nonvolatile memory 210 may be implemented as ROM, flash memory, or the like, and the volatile memory 230 may be implemented as RAM, or the like. The memory unit 200 may store continuously or temporarily, in the nonvolatile memory 210 or the volatile memory 230, the operating system of the mobile device, programs and data related to a display control of the display unit 100, programs and data related to an input control through the display unit 100, programs and data related to entering hibernation mode of the mobile device, programs and data related to a waking up from hibernation mode, and the like.

In one embodiment, the memory unit 200 stores a snapshot image, which is predetermined at a specific time. For instance, a snapshot image may be a boot data package composed of system components driven when the home screen is displayed at the time of manufacture of the mobile device, or may be packaged in advance according to a setting of a user. Considering that no power is supplied to all system components of the mobile device in a hibernation mode, it is desirable that a snapshot image is stored in the nonvolatile memory 210. Therefore, the nonvolatile memory 210 may have a dedicated region (e.g., a snapshot image region 250) for storing a snapshot image.

Specifically, according to embodiments of this invention, a snapshot image is stored in a particular region (e.g., the snapshot image region 250) allocated in the nonvolatile memory 210. The snapshot image region 250 is present at a physically fixed location in the nonvolatile memory 210. A snapshot image may be created as the default at the time of manufacture of the mobile device or according to a setting of a user. This snapshot image may be preserved in the snapshot image region 250 of the nonvolatile memory 210 until a user requests a change, and used every time whenever the mobile device performs out a wakeup.

Therefore, this invention makes it possible to maintain a valid snapshot image. Namely, a snapshot image of this invention is different from a conventional snapshot image that is repeatedly created in response to an entrance into a hibernation mode. Therefore, this invention does not require a typical process of determining the validity of a snapshot image at the time of a wakeup. Also, this invention prevents conventional errors caused by an abnormal loss of power.

Additionally, at the time of a wakeup based on a snapshot image, this invention offers data consistent with the former system status (e.g., change of background screens, change of ringtones, modification of phonebook, etc.) before an entrance into a hibernation mode. For instance, such a system status of the mobile device is registered in a particular region (e.g., a database region 270) of the nonvolatile memory 210. Therefore, this invention performs synchronization by comparing a system status (e.g., currently executed data) loaded by a snapshot image at the time of a wakeup with the former system status (e.g., data stored in the database region 270) before an entrance into a hibernation mode.

In embodiments of this invention, system status synchronization is performed as follows.

One case is application synchronization. In this case, each application of the mobile device has a separate database, and a database loaded into the volatile memory 230 at the time of a wakeup by a snapshot image is often different from database stored in the nonvolatile memory 210 (especially, the database region 270). The mobile device compares these pieces of database and finds a change in database. If there is any change in database, the mobile device reloads database of the database region 270 into the volatile memory 230.

Another case is data cache synchronization. In this case, consistency may be lost on the level of a file system at the time of a wakeup by a snapshot image. In order to solve the inconsistency, the mobile device clears data cache at the time of a wakeup and then, referring to the database region 270 of the nonvolatile memory 210, loads new data cache. This case may need some time for loading. An advanced technique is to monitor inodes, which indicate a kind of data structure and has information about a file system such as regular files and directories, in which a writing operation occurs in comparison with database of a system status based on a snapshot image, and to store monitoring results in a particular region of the nonvolatile memory 210. The mobile device then selectively loads necessary inodes at the time of a wakeup in a hibernation mode.

Referring again to FIG. 1, the control unit 300 controls the whole operations of the mobile device. Particularly, the control unit 300 controls operations related to a hibernation function. For instance, the control unit 300 controls entrance into a hibernation mode, a boot management subsequent to a wakeup in a hibernation mode, or the like. At the time of a wakeup in a hibernation mode, the control unit 300 temporarily copies a snapshot image from the nonvolatile memory 210 to the volatile memory 230 and thereby controls a return to an initial system status. After a return to a system status using a snapshot image copied to the volatile memory 230, the control unit 300 compares the former system status (e.g., data of the system status before an entrance into the hibernation mode (DB of the nonvolatile memory 210)) with returned system status (e.g., a data of the system status based on the snapshot image (DB of the volatile memory 230)) and thereby control synchronization.

Moreover, the control unit 300 controls at least one of a first update that uses a new snapshot image taken through a user interface and a second update that is made by creating a new snapshot image based on a current system status in response to an input from a shortcut button and replacing the snapshot image with the new snapshot image.

The above-discussed control operations of the control unit 300 will be described again below. The control unit 300 performs a variety of control operations in connection with normal functions. For instance, the control unit 300 controls the execution of applications and a related data display. Further, the control unit 300 receives input signals, in various input forms, from a touch-based input interface and control corresponding functions. And also, the control unit 300 controls a power on/off process in a normal mode.

The mobile device shown in FIG. 1 may be applied to any types of mobile device including a bar type, a folder type, a slide type, a swing type, a flip type, and the like. Additionally, the mobile device of this invention may include any of communication devices, multimedia players and their application equipment. For example, the mobile device may include various mobile communication terminals based on various communication protocols, a tablet Personal Computer (PC), a smart phone, a Portable Multimedia Player (PMP), a digital broadcasting player, a Personal Digital Assistant PDA, a music player (e.g., an MP3 player), a portable game console, and the like.

FIG. 2 is a flowchart illustrating a method for supporting a hibernation function in a mobile device in accordance with an embodiment of the present invention.

Referring to FIG. 2, the control unit 300 enters a hibernation mode in step 201 and then detects a wakeup event in step 203. For instance, if an interrupt of a user occurs through an input unit or power button of the mobile device in the hibernation mode, power is supplied again to the entire system of the mobile device and thereby the control unit 300 detects the wakeup event subsequent to power supply.

In response to the wakeup event, the control unit 300 may load a snapshot image into the volatile memory 230 from the snapshot image region 250 of the nonvolatile memory 210 in step 205. Specifically, the memory unit 300 retrieves the snapshot image from the snapshot image region 250 of the nonvolatile memory 210 and allows the snapshot image to reside in the volatile memory 230 in order to prepare a boot process based on a wakeup of the mobile device. For instance, the control unit 300 restores data recorded in the snapshot image to original locations and returns to a state for starting again a system boot process.

After loading the snapshot image, the control unit 300 determines whether there is a modification of a system status in step 207. For example, the control unit 300 compares data restored depending on the snapshot image after the snapshot image is loaded, with data stored in the database region 270 of the nonvolatile memory 210, and thus determines whether there is a difference between such data. Specifically, the control unit 300 compares data of the system status before an entrance into the hibernation mode with data of the system status based on the snapshot image.

If there is no system status modification (namely, the NO branch of step 207), the control unit 300 finishes a system boot in step 211. If there is any system status modification (namely, the YES branch of step 207), the control unit 300 performs data synchronization in step 209. In particular, the control unit 300 determines that the system status is modified, and then synchronizes data loaded into the volatile memory 230 by the snapshot image based on data stored in the database region 270 of the nonvolatile memory 210.

After the synchronization of data loaded into the volatile memory 230, the control unit 300 finishes the system boot, namely a wakeup process in step 211.

FIG. 3 is a diagram illustrating an update process for a snapshot image in a mobile device in accordance with an embodiment of the present invention.

FIG. 3 shows a process of modifying a snapshot image according to a setting of a user. First, a user sets the snapshot image differently in connection with a hibernation function, using a user interface provided in the mobile device.

In step 310, when a user interface for setting a hibernation function is invoked, the control unit 300 outputs certain information related to a snapshot image currently established based on the user interface in step 320. Snapshot image related information includes various system status data that constitute the snapshot image. For instance, a system status until the home screen is displayed at the time of manufacture of the mobile device may be offered as a snapshot image.

Next, based on snapshot image related information offered in step 320, a user may modify information such as a snapshot image in step 330. For instance, a user may exclude or add a specific system status from or to related information offered through a user interface. Also, a user may form a snapshot image from a currently running system status in the mobile device. After a modification of information according to a system status based on a setting of a user, a user may enter a command to create a snapshot image.

Next, in step 340, the control unit 300 receives a snapshot image creation command, check a system status resulting from a modification of information, and reconstruct a new snapshot image. Then, in step 350, the control unit 300 updates an existing snapshot image by using the new snapshot image. For instance, the control unit 300 replaces a snapshot image in the snapshot image region 250 of the nonvolatile memory 210 with the new snapshot image.

Although not illustrated in FIG. 3, the creation of a snapshot image may be performed through a shortcut button. For instance, when a user would like to make a snapshot image from a current system status, he or she may select a predefined shortcut button. Then the control unit 300 may newly create a snapshot image based on a current system status.

Additionally, according to embodiments of the present invention, a modified snapshot image is restored to an initial snapshot image. The mobile device may thus remember information related to a system status of the initial snapshot image and perform recovery to the initial snapshot image based on such remembered information.

The above-described methods according to the present invention can be realized in hardware or as software or computer code that can be stored in a recording medium such as a CD-ROM, a Random Access Memory (RAM), a floppy disk, a hard disk, or a magneto-optical disk or downloaded over a network, so that the methods described herein can be rendered in such software using a general purpose computer, or a special processor or in programmable or dedicated hardware, such as an Application-Specific Integrated Circuit (ASIC) or Field-Programmable Gate Array (FPGA). As would be understood in the art, the computer, the processor or the programmable hardware include memory components, e.g., RAM, ROM, Flash, and the like that may store or receive software or computer code that when accessed and executed by the computer, processor or hardware implement the processing methods described herein. Additionally, it would be recognized that when a general purpose computer accesses code for implementing the processing shown herein, the execution of the code transforms the general purpose computer into a special purpose computer for executing the processing shown herein.

While the present invention has been particularly shown and described with reference to certain embodiments thereof, it will be understood by those skilled in the art that various changes in form and details may be made therein without departing from the spirit and scope of the present invention as defined by the appended claims and their equivalents. 

1. A method for supporting a hibernation function of a mobile device, the method comprising: detecting a wakeup event in a hibernation mode; in response to the wakeup event, loading a snapshot image into a volatile memory from a snapshot image region of a nonvolatile memory; after the loading of the snapshot image, determining whether a system status has been modified; if the system status has not been modified, finishing a system boot; and if the system status has been modified, performing data synchronization and then finishing the system boot.
 2. The method of claim 1, wherein determining whether the system status has been modified comprises: comparing data of the system status before an entrance into the hibernation mode with data of the system status based on the snapshot image.
 3. The method of claim 2, wherein comparing data of the system status comprises: comparing first data stored depending on the snapshot image after the snapshot image is loaded, with second data stored in a database region of the nonvolatile memory; and determining whether there is a difference between the first data and the second data.
 4. The method of claim 1, wherein performing data synchronization comprises: synchronizing data loaded into the volatile memory by the snapshot image based on data stored in a database region of the nonvolatile memory.
 5. The method of claim 1, further comprising: updating the snapshot image according to a setting of a user.
 6. The method of claim 5, wherein updating the snapshot image comprises: creating a new snapshot image based on a current system status in response to a user's input for selecting a shortcut button; and replacing the snapshot image with the new snapshot image.
 7. A mobile device comprising: a memory unit including a nonvolatile memory and a volatile memory, for storing a snapshot image in the nonvolatile memory and allowing the snapshot image to be loaded into the volatile memory in response to a wakeup event occurring in a hibernation mode; and a control unit for allowing entrance into the hibernation mode without any creation of the snapshot image, loading the snapshot image into the volatile memory from the nonvolatile memory in response to the wakeup event in the hibernation mode, and performing data synchronization for a system boot depending on a modification or not of a system status.
 8. The device of claim 7, wherein the nonvolatile memory comprises: a snapshot image region allocated for storing the snapshot image; and a database region allocated for storing other data of the mobile device.
 9. The device of claim 8, wherein after loading of the snapshot image, the control unit compares data loaded into the volatile memory by the snapshot image with data stored in the database region and then determines whether the system status is modified.
 10. The device of claim 9, wherein the control unit further synchronizes the data loaded into the volatile memory by the snapshot image based on the data stored in the database region of the nonvolatile memory.
 11. The device of claim 7, wherein the control unit further creates a new snapshot image based on a setting of a user about a system status and to control an update of the snapshot image by using the new snapshot image.
 12. The device of claim 7, wherein the control unit further performs at least one of a first update using a new snapshot image established through a user interface and a second update composed of creating a new snapshot image based on a current system status in response to an input from a shortcut button and replacing the snapshot image with the new snapshot image. 